/**
 * Created by DXX520 on 2017/2/9.
 */
(function (angular) {
    var app=angular.module('todoApp.directive',[])
    //创建指令
    app.directive('todoFocus', function () {
        return {
            link: function (scope,ele,attr) {
                //link打印的是对象

                ele.on('dbclick', function () {
                    console.log(angular.element(this).find("input")[1].focus());

                })
            }
        }

    })

})(angular)